package com.humngyang.com.hmy.study.springtest.mybatis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserService {

    public UserService() {
        System.out.println("UserService init");
    }

    @Autowired
    UserDao userDao;


    public List<Map<String,Object>> getAllUser(){
       return  userDao.queryAll();
    }

}
